mod module;
use module::system::*;
use module::network::setup_wireguard_interface;

#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
    tauri::Builder::default()
        .invoke_handler(tauri::generate_handler![
            cmd_get_system_info,
            cmd_get_wireguard_interfaces,
            setup_wireguard_interface
        ])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}
